package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName(value = "vip_level", autoResultMap = true)
public class VipLevel implements

        Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "级别编码（如：VIP1、VIP2、SVIP）")
    private String levelCode;

    @ApiModelProperty(value = "级别名称（如：黄金会员、钻石会员）")
    private String levelName;

    @ApiModelProperty(value = "级别描述")
    private String description;

    @ApiModelProperty(value = "会员特权（JSON格式存储，如：{\"ad_free\":true,\"download_speed\":2}）")
    private String privileges;

    @ApiModelProperty(value = "价格（单位：元）")
    private BigDecimal price;

    @ApiModelProperty(value = "默认时长（单位：天，如：30天/月）")
    private Integer durationDays;

    @ApiModelProperty(value = "排序（数字越大级别越高）")
    private Integer sort;

    @ApiModelProperty(value = "状态：1=启用，0=禁用")
    private Byte status;


}